package com.topcoder.srm518;

public class TwiceString {
	public String getShortest(String s) {
		for (int i=1; i<s.length(); i++) {
			String sub = s.substring(i, s.length());
			if (s.startsWith(sub)) {
				return s + s.substring(s.length() - i);
			}
		}
		return s + s;
	}
}
